<form #f="ngForm" (ngSubmit)="onSubmit($event,f)">
  <h2 mat-dialog-title>邀请组员</h2>
  <div mat-dialog-content>
    <!-- <mat-form-field class="full-width">
      <input matInput type="text" placeholder="组员姓名" [matAutocomplete]="autoMebers">
      <mat-autocomplete #autoMebers="matAutocomplete" [displayWith]='displayUser'>
        <mat-option *ngFor="let option of mebers" [value]='option'>
          <span>{{option.name}}</span>
        </mat-option>
      </mat-autocomplete>
    </mat-form-field> -->
    <app-chips-list [label]="'邀请成员'" name="members" [(ngModel)]="members">
    </app-chips-list>
  </div>
  <div mat-dialog-actions>
    <button type="submit" [disabled]="!f.vaild"  mat-raised-button color='primary' (click)="onSave()">保存</button>
    <button type="button" mat-button mat-dialog-close>关闭</button>
  </div>
</form>
